package top.zy.model.event.event;

import lombok.Data;
import lombok.experimental.SuperBuilder;
import org.springframework.context.ApplicationEvent;

/**
 * @author ZackYoung
 * @version 1.0
 * @date 2021/12/26
 */
public class UserRegisterEvent extends ApplicationEvent {

    /**
     * 用户名
     */
    String username;

    public UserRegisterEvent(Object source, String username) {
        super(source);
        this.username = username;
    }

    public String getUsername() {
        return username;
    }
}
